import http from "@/plugins/axios";
// 修改用户信息
export const save = (params) =>
  http.post("/api/User/PostUpdateUserBaseInfo", params);
// 修改用户头像
export const saveAvatar = (params, files) =>
  http.postform("/api/User/PostUpdateUserHeader", params, files);
// 获取用户列表
export const getList =(params) => http.post('/api/User/PostGetUserList',params)
// 获取用户信息
export const getUser = (params) => http.get('/api/User/GetUserInfoByUserAccount',params)
// 新建用户
export const addUser = (params) =>http.post('/api/User/PostCreateUser',params)
// 修改用户
export const saveUser = (params) => http.post('/api/User/PostUpdateUserInfo',params)
// 禁用启用
export const stopUser = (params) =>http.post('/api/User/PostSetStopUser',params)
// 重置用户
export const reset = (params) =>http.get('/api/User/GetResetUserPassword',params)